package cn.cs.mapper;

import cn.cs.pojo.AfterOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface AfterOrderMapper {

    List<AfterOrder> getAfterOrderList(Map<String, Object> param);

    int updateAfterOrder(AfterOrder order);


    public AfterOrder getAfterOrderById(@Param(value = "id") Long id) throws Exception;

    public List<Map<String, Object>> getAfterOrderByUserIdAndOrderId(@Param(value = "orderId") String orderId) throws Exception;

    public List<Map<String, Object>> getAfterOrderByUserId(@Param(value = "orderId") String orderId, @Param(value = "userId") String userId, @Param(value = "id") String id) throws Exception;

    public List<AfterOrder> getAfterOrderListByMap(Map<String, Object> param) throws Exception;

    public List<Map<String, Object>> getAfterOrderListPage(Map<String, Object> param) throws Exception;

    public List<Map<String, Object>> getAfterOrderAllListPage(Map<String, Object> param) throws Exception;

    public Integer getAfterOrderAllCountByMap(Map<String, Object> param) throws Exception;

    public Integer getAfterOrderCountByMap(Map<String, Object> param) throws Exception;

    public Integer insertAfterOrder(AfterOrder afterOrder) throws Exception;

    public Integer deleteAfterOrderById(@Param(value = "id") Long id) throws Exception;

    public AfterOrder getAfterOrderByOrderIdOne(@Param(value = "orderId") String orderId);

    public int getMsgCount(String id);
}
